package com.simpleframe.util;

public class Utils {
	
	public static boolean isAllNull(Object...objects){	
		for (Object object : objects) {
			if(isNotNull(object)){
				return false;
			}
		}
		return true;
	}
	
	public static boolean isNull(Object object){
		if(object==null){
			return true;
		}
		return false;
	}
	
	public static boolean isNotNull(Object object){
		if(object!=null){
			return true;
		}
		return false;
	}
	
	public static boolean isEmpty(String str){
		if(isNotNull(str)){
			if(str.trim().length()>0){
				return false;
			}
		}
		return true;
	}
	
	public static boolean isNotEmpty(String str){
		return !isEmpty(str);
	}
	
}
